package com.vancouver.knows.business.bean;

import java.io.Serializable;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 城惠类型
 * 
 * @author cxlin
 * 
 */
public class DiscountCategoryInfo implements Serializable {

	@JSONField(name = "position")
	private int position;
	@JSONField(name = "name")
	private String name;
	@JSONField(name = "count")
	private int count;
	@JSONField(name = "image_url")
	private String imageUrl;
	@JSONField(name = "business_subcategories")
	private List<SubcategoryInfo> subcategoryInfos;
	@JSONField(name = "display_on_home")
	private String displayOnHome = "N";

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public List<SubcategoryInfo> getSubcategoryInfos() {
		return subcategoryInfos;
	}

	public void setSubcategoryInfos(List<SubcategoryInfo> subcategoryInfos) {
		this.subcategoryInfos = subcategoryInfos;
	}

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	public String getDisplayOnHome() {

		if (displayOnHome == null) {
			return "N";
		}

		return displayOnHome;
	}

	public void setDisplayOnHome(String displayOnHome) {
		this.displayOnHome = displayOnHome;
	}

	public static class SubcategoryInfo implements Serializable {
		private String name;
		private String count;

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getCount() {
			return count;
		}

		public void setCount(String count) {
			this.count = count;
		}

	}
}
